﻿using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Sharp.Portal.AdminLTE;
using Sharp.Portal.Mvc;
using Sharp.Portal.Mvc.Form;

namespace Sharp.WebBooter.Areas.Demo.Models
{
    public partial class TroubleshootingModel
    {
        public class RectificationInfo : ISharpForm
        {
            public RectificationInfo() { UI = new BSSharpFrom(this); }
            [HiddenInput]
            public int Id { get; set; }
            /// <summary>
            /// 治理情况
            /// </summary>
            [Display(Name = "治理情况"), DataType(DataType.MultilineText)]
            public string Governance { get; set; }

            /// <summary>
            /// 排查公示
            /// </summary>
            [Display(Name = "排查公示"), DataType(DataType.MultilineText)]
            public string InspectionPublicity { get; set; }

            /// <summary>
            /// 检查结果
            /// </summary>
            [Display(Name = "检查结果"), DataType(DataType.MultilineText), Required]
            public string ExaminationResults { get; set; }

            /// <summary>
            /// 整改日期
            /// </summary>
            [Display(Name = "整改日期"), DataType(DataType.Date)]
            public string RectificationDate { get; set; }

            /// <summary>
            /// 费用落实
            /// </summary>
            [Display(Name = "费用落实")]
            public bool CostImplementation { get; set; }

            /// <summary>
            /// 整改负责人
            /// </summary>
            [Display(Name = "整改负责人"),CustomField(FieldType.SelectBox, "/Platform/Employee/EmployeeDialog/", DisplayField = "", ValueField = nameof(RectResponsiblePersonId)), Required]
            public string RectResponsiblePerson { get; set; }
            public int RectResponsiblePersonId { get; set; }


            /// <summary>
            /// 安全措施应急预案
            /// </summary>
            [Display(Name = "安全措施应急预案"), DataType(DataType.MultilineText), Required]
            public string EmergencyPlan { get; set; }

            /// <summary>
            /// 超期提醒
            /// </summary>
            [Display(Name = "超期提醒"), DataType(DataType.Date)]
            public string OverdueReminding { get; set; }

            /// <summary>
            /// 完成图片
            /// </summary>
            [Display(Name = "完成图片"), DataType(DataType.Upload)]
            public string FinishPicture { get; set; }

            public SharpFrom UI { get; set; }
        }
    }
}